package com.xgk.boot.module.core.service.truck;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xgk.boot.framework.common.pojo.PageResult;
import com.xgk.boot.module.core.controller.admin.truck.vo.ApiLogPageReqVO;
import com.xgk.boot.module.core.controller.admin.truck.vo.OrderLogPageReqVO;
import com.xgk.boot.module.core.dal.entity.truck.TruckOrderApiLogDO;
import com.xgk.boot.module.core.dal.entity.truck.TruckOrderLogDO;
import com.xgk.boot.module.core.dal.iservice.truck.TruckOrderApiLogService;
import com.xgk.boot.module.core.dal.mapper.truck.TruckOrderApiLogMapper;
import com.xgk.boot.module.core.dal.mapper.truck.TruckOrderLogMapper;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

/**
 * 订单API请求日志 服务实现
 */
@Service
public class TruckOrderApiLogServiceImpl extends ServiceImpl<TruckOrderApiLogMapper, TruckOrderApiLogDO> implements TruckOrderApiLogService {

    @Resource
    private TruckOrderApiLogMapper truckOrderApiLogMapper;

    @Resource
    private TruckOrderLogMapper truckOrderLogMapper;

    @Override
    public PageResult<TruckOrderApiLogDO> getApiLogPage(ApiLogPageReqVO pageReqVO) {
        return truckOrderApiLogMapper.selectPage(pageReqVO);
    }

    @Override
    public PageResult<TruckOrderLogDO> getOrderLogPage(OrderLogPageReqVO pageReqVO) {
        return truckOrderLogMapper.selectPage(pageReqVO);
    }
}
